package com.test.event;

import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 功能描述
 *
 * @date 2024/3/8 14:40
 * @author fanxin
 * @since 1.0
 */
@Component
public class EmailEventListener implements ApplicationListener<EmailSendEvent> {

    @Override
    public void onApplicationEvent(EmailSendEvent event) {
        System.out.println("收到邮件，邮件内容：" + event.getContent());
    }
}
